<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>

    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <img v-bind:src="imgSrc"  width="300" alt="">
        <img :src="imgSrc" :width="imgWidth" :alt="'你好'" />
    </div>
    <script>
        const vm = new Vue({
            el:"#app",
            data(){
                return{
                    msg:"I love you to",
                    imgSrc:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2Ftp09%2F21031FKU44S6-0-lp.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1665664678&t=d76fc8ec6ec1b15f73287be8e01c1b2d",
                    imgWidth:500,

                }
            }
        })
    </script>
</body>
</html>